﻿@model KnowledgeCommunity.Model.UserAccount

@{
    ViewBag.Title = "UserInfo";
    Layout = "~/Views/Shared/_Layout_zone.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("UserInfo", "Account", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.UserName)
    <div class="contentcontainer">
        <div class="headings altheading">
            <h2>账户信息</h2>
        </div>
        <div class="contentbox">
            <table width="100%">
                <tbody>
                    <tr class="alt">
                        <th> 
                          用户名
                        </th>
                        <td>
                          @Model.UserName
                        </td>
                        <th> 
                          账户金额
                        </th>
                        <td>
                          @Model.Account
                        </td>
                    </tr>
                    <tr class="alt">
                        <th> 
                          联系方式
                        </th>
                        <td>
                          @Html.EditorFor(model => model.Telephone)
                          @Html.ValidationMessageFor(model => model.Telephone)
                        </td>
                        <th> 
                          Email
                        </th>
                        <td>
                          @Html.EditorFor(model => model.Email)
                          @Html.ValidationMessageFor(model => model.Email)
                        </td>
                    </tr>
                    <tr class="alt">
                        <th> 
                          用户头像
                        </th>
                        <td>
                         <!-- <img src="@Url.Content(Model.ImgUrl)" height="40px" />  -->
                        </td>
                        <th> 
                          修改头像
                        </th>
                        <td>
                          <input type="file" name="ImgUrl" id="ImgUrl" />
                        </td>
                    </tr>
                </tbody>
            </table>
            <input type="submit" value="保存修改" />
            <div style="clear: both;"></div>
        </div>     
    </div>
}